/*
 * 
 */
package br.com.felix.fwt.ui.javascript;

/**
 * The Enum Event enumerates the possible Javascript events that we can listen to, and attach methods to.
 * */
public enum Event {
	ONCLICK, 
	ONDBLCLICK,  
	ONMOUSEDOWN,
	ONMOUSEMOVE,  
	ONMOUSEOUT,  
	ONMOUSEOVER,  
	ONMOUSEUP,
	
	ONCHANGE,// Script to be run when the element changes  
	ONSUBMIT,// Script to be run when the form is submitted  
	ONRESET,// Script to be run when the form is reset  
	ONSELECT,// Script to be run when the element is selected  
	ONBLUR,// Script to be run when the element loses focus  
	ONFOCUS;// Script to be run when the element gets focus 

	/**
	 * Returns the javascript code for this Event.
	 * @return the name of the event in lowercase.
	 * */
	public String toString(){
		return super.toString().toLowerCase();
	}

}
